-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for cutting in Safari when selecting all with widget at the beginning #3609
Conversation
Rebased onto latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one issue with the current solution, after cutting there is additional empty paragraph (<p></p>
) left in the content. When you paste back cut content, you are not able to select all again because of the <p></p>
at the content end. It also pollutes getData()
, etc.
It looks like a little broader issue, related to getClipboardHtml()
, but still it worked before on Safari (select all + cut) so should be investigated.
It seems like a deeper issue. I've extracted it to #3705. |
#3705 was merged to |
I've rebased the branch onto latest |
The issue is connected with the filler itself. Safari can't delete it properly after cutting, leaving its content (space) inside the editor. Editor converts it into the paragraph, which results in two paragraphs (one from the filler and default one, created automatically after cutting). It seems like our filler needs its own filler to be deleted 😐 |
If we could use the solution proposed there, the issue should go away and we will be able to proceed with this PR. |
What is the purpose of this pull request?
Bug fix
Does your PR contain necessary tests?
All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
What is the proposed changelog entry for this pull request?
What changes did you make?
I've manually added
widgetselection
fillers just for Safari.Closes #3537.